package 行为型模式.状态模式.before;

public class Client {
    public static void main(String[] args) {
        //创建电梯对象
        Lift lift=new Lift();

        //创建电梯当前状态
        lift.setState(Lift.OPENING_STATE);

        //打开
        lift.open();
        lift.close();
        lift.run();
        lift.stop();
    }
}
